import React, {useEffect} from 'react';
import {View,} from '@tarojs/components';


import styles from './index.module.scss';
import CouponItem from "@/mall/pages/coupons/CouponItem";
import CouponDetail from "@/mall/pages/coupon/CouponDetail";

const Index: React.FC = () => {
    const data = {
        amount: '18',
        condition: '满200元可用',
        title: '生鲜满减券 - 2',
        time: '2019.11.18-2023.12.18',
    }
    useEffect(() => {
        load();
    }, []);

    const load = async () => {

    }


    return (
        <View className={styles.page}>
            <View className={styles.page_head}>
                <CouponItem data={data}></CouponItem>
            </View>

            <View className={styles.page_body}>
                <CouponDetail></CouponDetail>
            </View>
            <View className={styles.page_foot}>
                查看可用商品
            </View>
        </View>

    );
};

export default Index;
